Imports System.Configuration

Public Class frmServiceMain
    Inherits System.Windows.Forms.Form
    

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
    Friend WithEvents ServiceMainToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ServiceTypeCreateViewToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ServiceLocationsCreateViewToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ServiceJournalToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents PrintLayoutToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents CashPaymentVoucherToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents JournalVoucherToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents OtherPaymentVoucherToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents InvoicePaymentVoucherToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents MenuStrip1 As System.Windows.Forms.MenuStrip
    Friend WithEvents ReportToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ServiceJournalReportToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents Panel1 As System.Windows.Forms.Panel

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents ttPosMenu As System.Windows.Forms.ToolTip
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.ttPosMenu = New System.Windows.Forms.ToolTip(Me.components)
        Me.ServiceMainToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.ServiceTypeCreateViewToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.ServiceLocationsCreateViewToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.ServiceJournalToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.ReportToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.ServiceJournalReportToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.PrintLayoutToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.CashPaymentVoucherToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.JournalVoucherToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.OtherPaymentVoucherToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.InvoicePaymentVoucherToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
        Me.MenuStrip1 = New System.Windows.Forms.MenuStrip()
        Me.Panel1 = New System.Windows.Forms.Panel()
        Me.MenuStrip1.SuspendLayout()
        Me.SuspendLayout()
        '
        'ServiceMainToolStripMenuItem
        '
        Me.ServiceMainToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ServiceTypeCreateViewToolStripMenuItem, Me.ServiceLocationsCreateViewToolStripMenuItem, Me.ServiceJournalToolStripMenuItem, Me.ReportToolStripMenuItem})
        Me.ServiceMainToolStripMenuItem.Name = "ServiceMainToolStripMenuItem"
        Me.ServiceMainToolStripMenuItem.Size = New System.Drawing.Size(99, 22)
        Me.ServiceMainToolStripMenuItem.Text = "Service Main"
        '
        'ServiceTypeCreateViewToolStripMenuItem
        '
        Me.ServiceTypeCreateViewToolStripMenuItem.Name = "ServiceTypeCreateViewToolStripMenuItem"
        Me.ServiceTypeCreateViewToolStripMenuItem.Size = New System.Drawing.Size(271, 22)
        Me.ServiceTypeCreateViewToolStripMenuItem.Text = "Service Type - Create/View"
        '
        'ServiceLocationsCreateViewToolStripMenuItem
        '
        Me.ServiceLocationsCreateViewToolStripMenuItem.Name = "ServiceLocationsCreateViewToolStripMenuItem"
        Me.ServiceLocationsCreateViewToolStripMenuItem.Size = New System.Drawing.Size(271, 22)
        Me.ServiceLocationsCreateViewToolStripMenuItem.Text = "Service Locations - Create/View"
        '
        'ServiceJournalToolStripMenuItem
        '
        Me.ServiceJournalToolStripMenuItem.Name = "ServiceJournalToolStripMenuItem"
        Me.ServiceJournalToolStripMenuItem.Size = New System.Drawing.Size(271, 22)
        Me.ServiceJournalToolStripMenuItem.Text = "Service Journal/Invoice"
        '
        'ReportToolStripMenuItem
        '
        Me.ReportToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ServiceJournalReportToolStripMenuItem})
        Me.ReportToolStripMenuItem.Name = "ReportToolStripMenuItem"
        Me.ReportToolStripMenuItem.Size = New System.Drawing.Size(271, 22)
        Me.ReportToolStripMenuItem.Text = "Report"
        '
        'ServiceJournalReportToolStripMenuItem
        '
        Me.ServiceJournalReportToolStripMenuItem.Name = "ServiceJournalReportToolStripMenuItem"
        Me.ServiceJournalReportToolStripMenuItem.Size = New System.Drawing.Size(214, 22)
        Me.ServiceJournalReportToolStripMenuItem.Text = "Service Journal Report"
        '
        'PrintLayoutToolStripMenuItem
        '
        Me.PrintLayoutToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.CashPaymentVoucherToolStripMenuItem, Me.JournalVoucherToolStripMenuItem, Me.OtherPaymentVoucherToolStripMenuItem, Me.InvoicePaymentVoucherToolStripMenuItem})
        Me.PrintLayoutToolStripMenuItem.Name = "PrintLayoutToolStripMenuItem"
        Me.PrintLayoutToolStripMenuItem.Size = New System.Drawing.Size(94, 22)
        Me.PrintLayoutToolStripMenuItem.Text = "Print Layout"
        '
        'CashPaymentVoucherToolStripMenuItem
        '
        Me.CashPaymentVoucherToolStripMenuItem.Name = "CashPaymentVoucherToolStripMenuItem"
        Me.CashPaymentVoucherToolStripMenuItem.Size = New System.Drawing.Size(233, 22)
        Me.CashPaymentVoucherToolStripMenuItem.Text = "Cash Payment Voucher"
        '
        'JournalVoucherToolStripMenuItem
        '
        Me.JournalVoucherToolStripMenuItem.Name = "JournalVoucherToolStripMenuItem"
        Me.JournalVoucherToolStripMenuItem.Size = New System.Drawing.Size(233, 22)
        Me.JournalVoucherToolStripMenuItem.Text = "Journal Voucher"
        '
        'OtherPaymentVoucherToolStripMenuItem
        '
        Me.OtherPaymentVoucherToolStripMenuItem.Name = "OtherPaymentVoucherToolStripMenuItem"
        Me.OtherPaymentVoucherToolStripMenuItem.Size = New System.Drawing.Size(233, 22)
        Me.OtherPaymentVoucherToolStripMenuItem.Text = "Other Payment Voucher"
        '
        'InvoicePaymentVoucherToolStripMenuItem
        '
        Me.InvoicePaymentVoucherToolStripMenuItem.Name = "InvoicePaymentVoucherToolStripMenuItem"
        Me.InvoicePaymentVoucherToolStripMenuItem.Size = New System.Drawing.Size(233, 22)
        Me.InvoicePaymentVoucherToolStripMenuItem.Text = "Invoice Payment Voucher"
        '
        'MenuStrip1
        '
        Me.MenuStrip1.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.MenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ServiceMainToolStripMenuItem, Me.PrintLayoutToolStripMenuItem})
        Me.MenuStrip1.Location = New System.Drawing.Point(0, 0)
        Me.MenuStrip1.Name = "MenuStrip1"
        Me.MenuStrip1.Size = New System.Drawing.Size(874, 26)
        Me.MenuStrip1.TabIndex = 1
        Me.MenuStrip1.Text = "MenuStrip1"
        '
        'Panel1
        '
        Me.Panel1.BackColor = System.Drawing.Color.SlateGray
        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.Panel1.Location = New System.Drawing.Point(0, 26)
        Me.Panel1.Name = "Panel1"
        Me.Panel1.Size = New System.Drawing.Size(874, 410)
        Me.Panel1.TabIndex = 64
        '
        'frmServiceMain
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
        Me.BackColor = System.Drawing.Color.SlateGray
        Me.ClientSize = New System.Drawing.Size(874, 436)
        Me.Controls.Add(Me.Panel1)
        Me.Controls.Add(Me.MenuStrip1)
        Me.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.ForeColor = System.Drawing.Color.SlateGray
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.IsMdiContainer = True
        Me.MainMenuStrip = Me.MenuStrip1
        Me.MaximizeBox = False
        Me.Name = "frmServiceMain"
        Me.ShowInTaskbar = False
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Service Manager"
        Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
        Me.MenuStrip1.ResumeLayout(False)
        Me.MenuStrip1.PerformLayout()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

#End Region


    Dim sertype As frmServiceType
    Dim serloc As frmServiceLocation

    Private Sub ServiceTypeCreateViewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ServiceTypeCreateViewToolStripMenuItem.Click
        Dim ApData As New APdataLogic
        If ApData.IsValidUserOption(UserID, CompanyID, 75) = True Then
            sertype = New frmServiceType
            sertype.ShowDialog()
        Else
            MsgBox("Access Denied !", MsgBoxStyle.Critical, "Inventory Manager")
        End If
    End Sub

    Private Sub ServiceLocationsCreateViewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ServiceLocationsCreateViewToolStripMenuItem.Click
        Dim ApData As New APdataLogic
        If ApData.IsValidUserOption(UserID, CompanyID, 76) = True Then
            serloc = New frmServiceLocation
            serloc.ShowDialog()
        Else
            MsgBox("Access Denied !", MsgBoxStyle.Critical, "Inventory Manager")
        End If
    End Sub

    Dim serjour As frmServiceJournal
    Dim serjourRpt As frmServiceJournalReport

    Private Sub ServiceJournalToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ServiceJournalToolStripMenuItem.Click
        Dim ApData As New APdataLogic
        If ApData.IsValidUserOption(UserID, CompanyID, 77) = True Then
            serjour = New frmServiceJournal
            serjour.ShowDialog()
        Else
            MsgBox("Access Denied !", MsgBoxStyle.Critical, "Inventory Manager")
        End If
    End Sub

    Private Sub ServiceJournalReportToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ServiceJournalReportToolStripMenuItem.Click
        Dim ApData As New APdataLogic
        If ApData.IsValidUserOption(UserID, CompanyID, 78) = True Then
            serjourRpt = New frmServiceJournalReport
            serjourRpt.ShowDialog()
        Else
            MsgBox("Access Denied !", MsgBoxStyle.Critical, "Inventory Manager")
        End If
    End Sub

    Private Sub CashPaymentVoucherToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CashPaymentVoucherToolStripMenuItem.Click

    End Sub
End Class
